Author: indika
Date: Thu Mar 19 10:50:51 2009
New Revision: 755912
URL: http://svn.apache.org/viewvc?rev=755912&view=rev
Log:
Namable , identifiable and StatisticsConfigurable interfaces
Added:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Identifiable.java
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Namable.java
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/statistics/StatisticsConfigurable.java
Added:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Identifiable.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Identifiable.java?rev=755912&view=auto
==============================================================================
---
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Identifiable.java
(added)
+++
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Identifiable.java
Thu Mar 19 10:50:51 2009
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.synapse;
+
+/**
+ * Identifiable indicates whether an abstraction can be identified
+ */
+public interface Identifiable {
+
+ /**
+ * Get the identifier of an abstraction
+ *
+ * @return String Representation of ID
+ */
+ String getId();
+}
Added:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Namable.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Namable.java?rev=755912&view=auto
==============================================================================
---
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Namable.java
(added)
+++
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Namable.java
Thu Mar 19 10:50:51 2009
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.synapse;
+
+/**
+ * Namable indicates whether an abstraction has a name.
+ */
+public interface Namable {
+ /**
+ * Get the name of an abstraction
+ *
+ * @return String Representation of name
+ */
+ String getName();
+
+ /**
+ * Set the name of an abstraction
+ *
+ * @param name String Representation of name
+ */
+ void setName(String name);
+
+}
Added:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java?rev=755912&view=auto
==============================================================================
---
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java
(added)
+++
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java
Thu Mar 19 10:50:51 2009
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.synapse.aspects;
+
+/**
+ * Types for set of abstractions
+ */
+public enum ComponentType {
+ PROXYSERVICE,
+ ENDPOINT,
+ SEQUENCE,
+ ANY
+}
Added:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/statistics/StatisticsConfigurable.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/statistics/StatisticsConfigurable.java?rev=755912&view=auto
==============================================================================
---
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/statistics/StatisticsConfigurable.java
(added)
+++
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/aspects/statistics/StatisticsConfigurable.java
Thu Mar 19 10:50:51 2009
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.synapse.aspects.statistics;
+
+/**
+ * Capability of configure statistics
+ */
+public interface StatisticsConfigurable {
+ /**
+ * Whether statistics has been enabled
+ *
+ * @return True if enable , o.w , false
+ */
+ public boolean isStatisticsEnable();
+
+ /**
+ * To disable statistics
+ */
+ public void disableStatistics();
+
+ /**
+ * To enable statistics
+ */
+ public void enableStatistics();
+}